import request from '@/utils/request'

// 查询customer列表
export function listCustomerLawyer(query) {
  return request({
    url: '/business/customerlawyer/list',
    method: 'get',
    params: query
  })
}

// 查询customer详细
export function getCustomerLawyer(id) {
  return request({
    url: '/business/customerlawyer/' + id,
    method: 'get'
  })
}

// 新增customer
export function addCustomerLawyer(data) {
  return request({
    url: '/business/customerlawyer',
    method: 'post',
    data: data
  })
}

// 修改customer
export function updateCustomerLawyer(data) {
  return request({
    url: '/business/customerlawyer',
    method: 'put',
    data: data
  })
}

// 删除customer
export function delCustomerLawyer(id) {
  return request({
    url: '/business/customerlawyer/' + id,
    method: 'delete'
  })
}

// 导出customer
export function exportCustomerLawyer(query) {
  return request({
    url: '/business/customerlawyer/export',
    method: 'get',
    params: query
  })
}

//查询所有的律师（新增时会用到）
export function allLawyer(){
  return request({
    url:'/business/customerlawyer/alllawyer',
    method:'get',
  })
}